﻿using DigitalQuran.Collection;
using System;
using System.Collections.Generic;

namespace DigitalQuran {

    /// <summary>
    /// Represents Search History Item
    /// </summary>
    public class SearchHistoryItem {

        /// <summary>
        /// Gets or sets the search query
        /// </summary>
        public string Query { get; set; }

        /// <summary>
        /// Gets or sets language type in which search is carried on
        /// </summary>
        public FindByTextLanguageType LanguageType { get; set; }

        /// <summary>
        /// Gets or sets the name of translator if search is in translation
        /// </summary>
        public string Translator { get; set; }

        /// <summary>
        /// Gets or sets the Collection of Verses found in search
        /// </summary>
        public VerseCollection Verses { get; set; }

        public string Header { get; set; }
    }

    /// <summary>
    /// Represent Browse History Item
    /// </summary>
    public class BrowseHistoryItem : Selection {

        /// <summary>
        /// Create new instance of <see cref="DigitalQuran.BrowseHistoryItem"/>
        /// </summary>
        /// <param name="selction">Selction made by user</param>
        public BrowseHistoryItem(Selection selction) : base(selction.Scope, selction.Indexes) {

        }
    }
}